package com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.MsgSender;

@RestController
public class Controller {


    @Autowired
    private MsgSender msgSender;

    @RequestMapping("/send/{msg}")
    public void send(@PathVariable("msg") String msg){
    	msgSender.send(msg);
    }
}
